package com.coderdream.chapter04.factorymethod;

import com.coderdream.chapter04.factorymethod.framework.Factory;
import com.coderdream.chapter04.factorymethod.framework.Product;
import com.coderdream.chapter04.factorymethod.idcard.IDCardFactory;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Factory factory = new IDCardFactory();
		Product card1 = factory.create("許林");
		Product card2 = factory.create("張新連");
		Product card3 = factory.create("許希恒");

		card1.use();
		card2.use();
		card3.use();
		
	}

}
